
@echo off 

title Console

:: ANSI Escape Color List
:: Intensity    0        1        2        3        4        5        6        7
:: ------------------------------------------------------------------------------------
:: Normal       Black    Red      Green    Yellow   Blue     Magenta  Cyan     White
:: Bright       Black    Red      Green    Yellow   Blue     Magenta  Cyan     White

:: $E[1;31m -> Intensity = 1, Red
:: $E[0;37m -> Intensity = 0, White

if "%1"=="-ansi" (
	prompt $E[1;31m[$P]$+$_$E[1;36m$$ $E[0;37m
) else (
	prompt [$P]$+$_$$ 
)

set http_proxy=http://%PROXY_ADDR%:%PROXY_PORT%
set PATH=%PATH%;%MSYS_HOME%\bin;%MINGW_HOME%\bin;
set SVN_EDITOR=%VIM_HOME%\vim.exe
set NPP_EDITOR=C:\Program Files\Notepad++\Notepad++.exe
set HEX_EDITOR=C:\Program Files\HxD\HxD.exe

doskey ~=cd "%HOMEDRIVE%\%HOMEPATH%"
doskey alias=doskey /macros
doskey clear=cls
doskey ll=ls -l $*
doskey sort=d:\bin\sort $*
doskey vim="%VIM_HOME%\vim.exe" $*
doskey gvim="%VIM_HOME%\gvim.exe" $*
doskey npp="%NPP_EDITOR%" $*
doskey psh="%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" $*
doskey cscript=cscript //nologo $*
doskey hxd="%HEX_EDITOR%" $*
doskey rubydoc="%RUBY_HOME%\doc\ruby18.chm"

cmd.exe /V:ON /k "cd %HOMEPATH%"
